    <script type="text/javascript" src="${base}/static/scripts/bootstrap.min.js"></script>
<div class="container">
    <div class="conditions">
     [@b.form name="search_policies_form" action="!policies"]
        [#list Parameters?keys as k]
          [#if k != "_"]
          <input type="hidden" name="${k}" value="${Parameters[k]}"/>
          [/#if]
        [/#list]
      [/@]
    
      <div class="total">共检索到${policies.totalItems}条记录</div>
      <div class="panel-group" aria-multiselectable="true">
        <div class="panel panel-default">
          <div class="panel-heading" role="tab">
            <a role="button" class="panel-title" data-toggle="collapse" href="#policyCollapseOne">时间<i class="pull-right fa fa-angle-down"></i></a>
          </div>
          <div id="policyCollapseOne" class="panel-collapse collapse in" role="tabpanel">
            <div class="panel-body">
              <ul class="list-unstyled">
                [#list yearStats as yearStat]
                 <li class="condition">
                 
                   <a href="javascript:void(0)" onclick="searchByDimentions(document.search_policies_form,'begin=${yearStat[0]}&end=${yearStat[0]}')">
                    ${yearStat[0]}年<span>(${yearStat[1]})</span>
                         </a>
                  
              [#if (Parameters['begin']!"") == yearStat[0]?string]<a href="javascript:void(0)" onclick="searchByDimentions(document.search_policies_form,'begin=&end=')" style='color:red'>X</a>[/#if]
                 </li>
                 
              
                
                [/#list]
                <li>
                  <form class="form-inline" name="search_policy_by_year_form" action="${b.url('!policies')}" method="post">
                    <div class="form-group">
                      <input type="text" class="form-control year" name="begin" value="">
                    </div>
                    <div class="form-group">
                      <span>-</span>
                    </div>
                    <div class="form-group">
                      <input type="text" class="form-control year" name="end" value="">
                    </div>
                    <button type="submit" class="btn btn-default" onclick="bg.form.submit(this.form)">确定</button>
                  </form>
                </li>
              </ul>
            </div>
          </div>
        </div>
        <div class="panel panel-default">
          <div class="panel-heading" role="tab">
            <a role="button" class="panel-title" data-toggle="collapse" href="#policyCollapseTwo">领域<i class="pull-right fa fa-angle-down"></i></a>
          </div>
          <div id="policyCollapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
            <div class="panel-body">
              <ul class="list-unstyled">
              
              
                [#list policyScopeStats as policyScopeStat]
                <li>
                
                
               <a href="javascript:void(0)" onclick="searchByDimentions(document.search_policies_form,'policyscope=${policyScopeStat[0]}')">
                ${policyScopeStat[0]}<span>(${policyScopeStat[1]})</span>
                  </a>
                  [#if (Parameters['policyscope']!"") == policyScopeStat[0]]<a href="javascript:void(0)" onclick="searchByDimentions(document.search_policies_form,'policyscope=')">X</a>[/#if]
                
                </li>
                [/#list]
              </ul>
            </div>
          </div>
        </div>
       
      </div>
    </div>
    
    <div class="main">
          <div class="container-fluid">
            <div class="pagebar row">
              [@b.form action="!policies" name="search_in_result_policyform"]
              <div class="col-xs-2 sort-control">
                <select class="form-control">
                  <option>默认排序</option>
                 
                </select>
              </div>
              <div class="col-xs-2 field-filter">
                <input type="text" class="form-control" placeholder="政策名称" name="policy.policyname" value="${Parameters['policy.policyname']!}">
              </div>
              <div class="col-xs-2 field-filter">
                <input type="text" class="form-control" placeholder="发文机关" name="policy.docoffice" value="${Parameters['policy.docoffice']!}">
              </div>
              <div class="col-xs-2 field-filter">
               <input type="text" class="form-control" placeholder="发文号" name="policy.docnumber" value="${Parameters['policy.docnumber']!}">
              </div>
              <div class="pull-right">
              
              
              
                <button type="submit" onclick ="bg.form.submit(this.form)" class="btn btn-default"><i class="fa fa-search"></i> 在结果中搜索</button>
                
                
                
                
                
              </div>
              [/@]
            </div>
          </div>
          <ol class="list-unstyled">
            [#list policies as policy] 
            <li class="row">
              <h5>
                <span class="index-no"></span>
                <span class="label label-primary">阅读全文</span>
                [@b.a href="!policyInfo?id="+policy.id class="title"]${policy.policyname}[/@]
                <span>(被引用 1 次)</span>
              </h5>
              <div class="col-xs-10 col-md-11 info-content">
                <div class="author">
                  ：<a href="#">${policy.docnumber!}</a> / <a href="#">${policy.docoffice!}</a> / <a href="#">${policy.docdate?string('yyyy年MM月dd日')!}</a> / <a href="#">${policy.docfiled.name!}</a> /
                  <a href="#">${policy.policyscope.name!}</a>
                  
                </div>
               
              </div>
              <div class="pull-right action-bar">
                <ul class="list-unstyled">
                  <li><a href="#" class="text-info"><i class="fa fa-download"></i>下载</a></li>
                  <li><a href="#" class="text-info"><i class="fa fa-file-text-o"></i>
      				[@b.a target="_blank" href="!viewPolicy?id=${policy.id}"] 阅读[/@]
                  </a></li>
              
                </ul>
              </div>
              
            </li>
            [/#list]
          </ol>
          <div class="pagination-bar row">
            [#assign currentPageIndex=policies.pageIndex/]
            [#assign totalPageIndex=policies.totalPages/]
            <ul class="pagination">
              <li>[@b.a href="!policies?pageIndex=1"]首页[/@]</li>
              [#if currentPageIndex>1]
              <li>[@b.a href="!policies?pageIndex=" +(currentPageIndex-1)]上一页[/@]</li>
              [/#if]
              [#list currentPageIndex-3 .. currentPageIndex-1 as i]
              [#if i>0]
              <li>[@b.a href="!policies?pageIndex=" +(i)]${i}[/@]</li>
              [#else] [#break/]
              [/#if]
              [/#list]
              <li class="active"><a href="#">${currentPageIndex}</a></li>
              [#list currentPageIndex+1 .. currentPageIndex+3 as i]
              [#if i<=totalPageIndex]
              <li>[@b.a href="!policies?pageIndex=" +(i)]${i}[/@]</li>
              [#else] [#break/]
              [/#if]
              [/#list]
              [#if currentPageIndex<totalPageIndex]
              <li>[@b.a href="!policies?pageIndex=" +(currentPageIndex+1)]下一页[/@]</li>
              [/#if]
              <li>[@b.a href="!policies?pageIndex="+totalPageIndex]尾页[/@]</li>
            </ul>
          </div>
      </div>
    </div>
  </div>
  
  </div> <!--end container-->

